import request from '@/utils/request'
// 根据设备id获取设备信息
export function device(deviceId) {
  return request({
    url: '/hospital/device/' + deviceId,
    method: 'get',
  })
}

// 获取设备图片
export function getAttachList(deviceId) {
  return request({
    url: '/hospital/device/attach/list?deviceId=' + deviceId,
    method: 'get',
  })
}

export function deviceSearch(params) {
  return request({
    url: '/hospital/device/deviceSearch',
    method: 'get',
    params
  })
}
